# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=dill
pkgname=python-$_pkgname
pkgver=0.3.7
pkgrel=1
pkgdesc='serialize all of python'
arch=('any')
url='https://github.com/uqfoundation/dill'
license=('MIT')
optdepends=('python-objgraph: graph support')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/dill-$pkgver.tar.gz")
sha512sums=('33ec55dc32c9ddf275ce6e502187949bbc7ecc6d24560e132a7bed23e93254b771d38e59c4b6313bbfc25313305c43c6cba2fe07763a93238e1ba66c4bbd8cd4')

build() {
  cd $_pkgname-$_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
